﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TathamOddie.OpenSearchValidator.Logic.Tasks
{
	public class ValidationTaskResult
	{
		readonly IList<Message> messages = new List<Message>();
		public IList<Message> Messages
		{
			get { return messages; }
		}

		readonly IList<IValidationTask> childTasks = new List<IValidationTask>();
		public IList<IValidationTask> ChildTasks
		{
			get { return childTasks; }
		}

		public void AddMessage(MessageType type, string messageFormat, params object[] messageParams)
		{
			Messages.Add(new Message(type, messageFormat, messageParams));
		}
	}
}